package com.qiandw.enterprise.credit.mapper

import com.qiandw.enterprise.credit.entity.BackstageUser
import org.apache.ibatis.annotations.Param

/**
  * Created by Draven on 2018/7/12.
  * Email:hjx@qiandw.com
  */
trait BackstageUserMapper {

  def deleteByPrimaryKey(id: Integer): Int

  def insert(record: BackstageUser): Int

  def insertSelective(record: BackstageUser): Int

  def selectByPrimaryKey(id: Integer): BackstageUser

  def updateByPrimaryKeySelective(record: BackstageUser): Int

  def updateByPrimaryKey(record: BackstageUser): Int

  def selectByUsernameAndPassword(@Param("username") username: String, @Param("password") password: String): BackstageUser
}
